#include<bits/stdc++.h>
using namespace std;
const int N=1e5+10;
int n,ans;
int a[N];
bool st[N];
int l,r,mid;
int main()
{
    std::ios::sync_with_stdio(false);
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++)
        cin>>a[i];
    sort(a+1,a+1+n);
    for(int i=1;i<=n;i++)
    {
        l=i+1,r=n;
        while(l<r)
        {
            mid=(l+r)/2;
            if(a[mid]>a[i])
                r=mid;
            else
              l=mid+1;
        }
        if(a[r]>a[i])
        {
            while(st[r]==true&&r<=n)
                r++;
            if(r<=n)
                st[r]=true,ans++;
        }
    }
    cout<<n-ans;
    return 0;
}
